package cn.technology.forum.service;

import cn.technology.forum.dto.*;
import cn.technology.forum.enums.NewsColumnEnum;
import cn.technology.forum.enums.SortEnum;
import cn.technology.forum.exception.CustomizeErrorCode;
import cn.technology.forum.exception.CustomizeException;
import cn.technology.forum.mapper.NewsExtMapper;
import cn.technology.forum.mapper.NewsMapper;
import cn.technology.forum.model.*;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;



@Service
public interface NewsService {


    NewsDTO getById(Long id);

    void incView(Long id);

    PaginationDTO listAllNews(String search, String tag, String sort, Integer page, Integer size, Integer column2);

}
